import { useState } from 'react';

export default function Counter() {
  const [value, setValue] = useState(1)
  return (
    <div>
      {value}
      <button onClick={() => setValue(value + 1)}>增加</button>
    </div>
  )
}